package com.jeesite.modules.my.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * my_usersEntity
 * @author ccz
 * @version 2025-03-20
 */
@Table(name="my_users", alias="a", label="my_users信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="username", attrName="username", label="username"),
		@Column(name="password", attrName="password", label="password"),
		@Column(name="region_id", attrName="regionId", label="region_id"),
	}, orderBy="a.id DESC"
)
public class MyUsers extends DataEntity<MyUsers> {
	
	private static final long serialVersionUID = 1L;
	private String username;		// username
	private String password;		// password
	private String regionId;		// region_id

	public MyUsers() {
		this(null);
	}
	
	public MyUsers(String id){
		super(id);
	}
	
	@Size(min=0, max=50, message="username长度不能超过 50 个字符")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Size(min=0, max=50, message="password长度不能超过 50 个字符")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Size(min=0, max=20, message="region_id长度不能超过 20 个字符")
	public String getRegionId() {
		return regionId;
	}

	public void setRegionId(String regionId) {
		this.regionId = regionId;
	}
	
}